ls
help
pwd
ls /
df
cat /proc/net/protocols 
ls
pwd
ls
cd /tmp
ls
ls web/
ls
pwd
help
ls /usr/bin/
dmesg
sudo
su
dmesg
help
df -h
free -m
ls /var/log/
busctl 
cat /etc/os-release 
uname -a
cd /lib/modules/
su
sudo
pwd
help
command
cat /proc/cmdline 
dmesg
ps
ps -ef
cat /opt/bmc/apps/hica/subsys/interface/secbox.cfg
lspci
lspci -a
lspci -k
lsmod
/opt/debug
busybox telnet localhost 23
ifconfig
ip
ip a
exit
df -h
lsblk
exit
hostname; date; uptime; echo __PORTS__; ss -lntp; echo __FAILED__; systemctl --failed --no-pager; echo __CONTAINERS__; command -v docker >/dev/null && docker ps -a --format 'table {{.Names}}\t{{.Status}}\t{{.Ports}}' || true; echo __WEBPROCS__; ps -ef | grep -E '[n]ginx|[a]pache|[h]ttpd|[t]omcat|[j]ava|[n]ode|[g]unicorn|[u]vicorn' | head -50
echo __OS__; cat /etc/os-release 2>/dev/null | head; echo __NET__; (netstat -lntp 2>/dev/null || lsof -nP -iTCP -sTCP:LISTEN 2>/dev/null || cat /proc/net/tcp) | head -100; echo __RUNNING__; systemctl list-units --type=service --state=running --no-pager; echo __ROOT__; ls -la /; echo __OPT__; find /opt /srv /data /app -maxdepth 2 -type f \( -name '*.log' -o -name 'docker-compose.yml' -o -name '*.service' \) 2>/dev/null | head -100
echo __SERVICES__; systemctl list-unit-files --type=service --no-pager | grep -Ei 'web|http|nginx|rest|proxy|portal|ui|bmc' ; echo __ALLUNITS__; systemctl list-units --type=service --all --no-pager | grep -Ei 'web|http|nginx|rest|proxy|portal|ui|bmc|failed'; echo __PROCS__; ps -eo pid,user,comm,args --sort=pid | head -100; echo __BOOTERR__; journalctl -b -p warning --no-pager | tail -150
echo __USERS__; tail -30 /etc/passwd; echo __USERSESS__; loginctl list-users --no-pager; loginctl list-sessions --no-pager; echo __MOREPROCS__; ps -eo pid,user,comm,args --sort=pid | sed -n '90,220p'; echo __BMCFILES__; find /opt/bmc -maxdepth 3 -type f 2>/dev/null | grep -Ei 'web|http|nginx|portal|rest|log|config' | head -150
echo __PROCESSCFG__; sed -n '1,240p' /opt/bmc/conf/process_config.ini; echo __APACHE__; find / -maxdepth 4 -iname '*apache*' -o -iname '*httpd*' 2>/dev/null | head -100; echo __LOGDIRS__; find /data /var/log /opt/bmc -maxdepth 4 -type f 2>/dev/null | grep -Ei '(web|http|apache|access|error|security).*log|\.log$' | head -200
echo __PKG__; grep -Ei 'web|rest|http|apache' /package_info | head -100; echo __FILES__; find /opt /data -type f 2>/dev/null | grep -Ei '/(web|www|htdocs)|webrest|httpd|nginx' | head -200; echo __MOUNTS__; mount | head -80; echo __DISK__; df -h
echo __WEBTREE__; find /data/trust/opt/bmc/web -maxdepth 4 -printf '%M %u %g %p\n' 2>/dev/null | head -240; echo __BOOTCFG__; grep -RniE 'nginx|webui|web_backend' /etc/systemd /opt/bmc /data/trust/opt 2>/dev/null | head -200
id; ls -ld /opt/bmc/web /data/trust/opt/bmc/web; ls -la /opt/bmc/web 2>&1; sed -n '300,370p' /opt/bmc/conf/launch_control.json; echo __NGINXLOGREF__; grep -RniE 'error_log|access_log|pid ' /data/trust/opt/bmc/web/nginx/conf /opt/bmc/web/nginx/conf 2>/dev/null | head -100
echo __VARLOG__; ls -la /var/log; find /var/log -maxdepth 2 -type f -printf '%M %u %g %s %TY-%Tm-%Td %TH:%TM %p\n' 2>/dev/null | sort -k6,7 | tail -100; echo __TOOLS__; command -v ipmcget; command -v ipmcset; ipmcget -h 2>&1 | head -80
ipmcget -t service -h 2>&1 | head -120; echo __IP__; ipmcget -d ipinfo; echo __HEALTH__; ipmcget -d health; echo __EVENTS__; ipmcget -d healthevents | tail -80
ipmcget -t service -d list
echo __DATA__; find /data -maxdepth 3 -printf '%M %u %g %p\n' 2>/dev/null | head -240; echo __PID__; ls -la /run | grep -Ei 'nginx|web|http'; find /run /tmp /data/trust/opt/bmc/web -maxdepth 5 -type f 2>/dev/null | grep -Ei 'nginx|error|log|pid' | head -100; echo __DMESG__; dmesg 2>&1 | tail -50
ls -la /opt/bmc/web/nginx /opt/bmc/web/nginx/sbin 2>&1; namei -l /opt/bmc/web/nginx/sbin/nginx 2>&1; getfacl /opt/bmc/web/nginx/sbin/nginx 2>/dev/null; echo __UPGRADE__; ipmcget -d rollbackstatus; ipmcget -d version
ipmcget -d diaginfo
ipmcset -t service -h 2>&1 | head -160; echo __OPERLOG__; ipmcget -d operatelog | tail -120
logout
